package com.example.bookstore.service;

import com.example.bookstore.entity.Book;
import com.example.bookstore.entity.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {

    List<Book> findAll();

    List<Category> findAllCategory();

    Book findById(Integer id);

    List<Book> findByCategoryId(Integer cid);

    Integer add(Book book);

    List<Book> findByKeyWord(String bookName);

}
